package com.acme.task1;

public class Calculator{
	
    public static void main(String args[]) {

		if (args.length != 3) {
			System.out.println("error length mass");
			System.exit(0);
		}
		double slog1 = Double.parseDouble(args[0]);
		double slog2 = Double.parseDouble(args[2]);
		double itog=0;
		if (args[1].charAt(0) == '+') {
			itog=slog1+slog2;
			System.out.println("Sum: " + itog);
			System.exit(0);
		}
		if (args[1].charAt(0) == '-') {
			itog=slog1-slog2;
			System.out.println("Sum: " + itog);
			System.exit(0);
		}
		if (args[1].charAt(0) == 'x') {
			itog=slog1*slog2;
			System.out.println("Sum: " + itog);
			System.exit(0);
		}
		if (args[1].charAt(0) == '/') {
			itog=slog1/slog2;
			System.out.println("Sum: " + itog);
			System.exit(0);
		}

	}

}